import request from "@/utils/request";
//获取树状结构信息
export function gettreeapi() {
  return request({
    url: 'business-hall/tree',
    method: "get",
  })
}
//获取员工信息
export function getyuangongapi(params) {
  return request({
    url: 'business-hall/user/page',
    method: 'get',
    params,
  })
}
//获取单独机构信息
export function getBusinessApi(id) {
  return request({
    method: "get",
    url: `/business-hall/${id}`,
  });
}
//获取分页
export function getfenyeapi(params) {
  return request({
    method: "get",
    url: '/business-hall/user/page',
    params
  });
}
//获取省级数据 
export function getshengapi() {
  return request({
    method: "get",
    url: '/areas/children',
  });
} 
export function getshiapi(params) {
  return request({
    method: "get",
    url: '/areas/children',
    params
  });
}
export function getquapi(params) {
  return request({
    method: "get",
    url: '/areas/children',
    params
  });
} 
export function getbaocun(data) {
  return request({
    method: "post",
    url: '/business-hall',
    data
  });
}